/**
 * 
 */
package com.mvity.framework.common.global;

import java.io.File;
import java.io.Serializable;

/**
 * 定义系统环境变量
 * 
 * @author vity
 * @date 2012-7-22
 * @mail vity.1215@gmail.com
 */
public final class SystemContext implements Serializable {

	private static final long serialVersionUID = -6792900183866349858L;

	private String projectName;

	private String projectDeployPath;

	private String projectRequestPath;

	private String projectStaticPath;

	/**
	 * 返回 projectName 的值
	 * 
	 * @return projectName
	 */
	public String getProjectName() {
		return projectName;
	}

	/**
	 * 设置 projectName 的值
	 * 
	 * @param projectName
	 */
	public void setProjectName(String projectName) {
		this.projectName = projectName;
	}

	/**
	 * 返回 projectDeployPath 的值
	 * 
	 * @return projectDeployPath
	 */
	public String getProjectDeployPath() {
		return projectDeployPath;
	}

	/**
	 * 设置 projectDeployPath 的值
	 * 
	 * @param projectDeployPath
	 */
	public void setProjectDeployPath(String projectDeployPath) {
		this.projectDeployPath = projectDeployPath;
	}

	/**
	 * 返回 projectRequestPath 的值
	 * 
	 * @return projectRequestPath
	 */
	public String getProjectRequestPath() {
		return projectRequestPath;
	}

	/**
	 * 设置 projectRequestPath 的值
	 * 
	 * @param projectRequestPath
	 */
	public void setProjectRequestPath(String projectRequestPath) {
		this.projectRequestPath = projectRequestPath;
	}

	/**
	 * 返回 projectStaticPath 的值
	 * 
	 * @return projectStaticPath
	 */
	public String getProjectStaticPath() {
		return projectStaticPath;
	}

	/**
	 * 设置 projectStaticPath 的值
	 * 
	 * @param projectStaticPath
	 */
	public void setProjectStaticPath(String projectStaticPath) {
		this.projectStaticPath = projectStaticPath;
	}

	/**
	 * 返回 projectExternalTempPath 的值
	 * 
	 * @return projectExternalTempPath
	 */
	public String getProjectExternalTempPath() {
		return getProjectStaticPath().concat(File.separator).concat("temp").concat(File.separator);
	}

	/**
	 * 返回 projectInternalTempPath 的值
	 * 
	 * @return projectInternalTempPath
	 */
	public String getProjectInternalTempPath() {
		return getProjectDeployPath().concat(File.separator).concat("temp").concat(File.separator);
	}

	/**
	 * 返回 projectExternalTempRequestPath 的值
	 * 
	 * @return projectExternalTempRequestPath
	 */
	public String getProjectExternalTempRequestPath() {
		return this.getProjectRequestPath().concat("/").concat("temp").concat("/");
	}

}
